package com.macro.mall.portal.util;

import org.springframework.amqp.rabbit.annotation.Queue;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class Xiaofei {
    @RabbitListener(queuesToDeclare = @Queue("test"))
    public void xiaoFei(String msg){
        System.out.println(msg);
    }
}
